<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require_once __DIR__ . '/admin/Bootstrap.php';
require __DIR__ . '/site2/config/config.inc.php';
require_once  __DIR__.'/utils/AuthenticationUtils.php';
require_once(MYSQL);

/**
 * Note: do not call prefix from here.
 * This page is allready redirected by Prefix
 */
if(AuthenticationUtils::checkSFLogin())
{
    header("location:index.php");
}

$_main_content = new Templater();
// process login
//AuthenticationUtils::authenticateSFLogin();
// check login
$_main_content->load(__DIR__.'/site2/views/login/login.html');

$_page = new Templater();
$_page->load(__DIR__ . '/site2/views/page/page.html');
$_page->set("content", $_main_content->parse());
$_page->publish();